import request from '@/utils/request'

// 问诊记录-订单列表-找医生、极速问诊、开药问诊
export const getOrderList = (params) => request({
  url: '/patient/consult/order/list',
  method: 'GET',
  params
})

// 问诊-查询订单详情信息-找医生、极速问诊和开药问诊
export const getOrderDetails = (orderId) => request({
  url: '/patient/consult/order/detail',
  method: 'GET',
  params: {
    orderId
  }
})

// 问诊-支付页面-计算就诊信息和抵扣信息
export const payOrder = (params) => request({
  url: '/patient/consult/order/pre',
  method: 'GET',
  params
})

// 问诊-保存/修改问诊订单
export const saveOrder = (data) => request({
  url: '/patient/consult/order',
  method: 'POST',
  data
})
